package com.songlanyun.modules.publicbenefitmsg.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.songlanyun.common.enums.DonationConstant;
import com.songlanyun.common.utils.PageUtils;
import com.songlanyun.modules.message.model.to.MessageTO;
import com.songlanyun.modules.publicbenefitmsg.entity.PublicBenefitMsgEntity;
import com.songlanyun.modules.publicbenefitmsg.model.IPublicBenefitMsgBody;
import com.songlanyun.modules.publicbenefitmsg.model.to.PublicBenefitMsgTO;

import java.math.BigDecimal;
import java.util.Map;

/**
 * 公益消息
 *
 * @author wuchao
 * @email songlanyun@gmail.com
 * @date 2022-08-05 11:06:31
 */
public interface PublicBenefitMsgService extends IService<PublicBenefitMsgEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 保存公益消息
     */
    void add(Long userId, DonationConstant.MsgType type, IPublicBenefitMsgBody msgBody, String content);

    /**
     * 发送公益消息
     * @param to
     */
    void sendMsg(PublicBenefitMsgTO to);

}

